package mystia.lorelei.app.entity;

import java.io.Serial;
import java.io.Serializable;

import lombok.Data;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 会员表(Member)表实体类
 *
 * @author gy_fangtao
 * @since 2023-09-16 16:07:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "member")
public class Member implements Serializable {
	@Serial
	private static final long serialVersionUID = 533551021884282740L;
	
	/**
	 * ID
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	
	/**
	 * 会员姓名
	 */
	@Column(name = "name")
	private String name;
	/**
	 * 性别,不一定是男/女,可以是其他性别
	 */
	@Column(name = "sex")
	private String sex;
	/**
	 * 电话号码
	 */
	@Column(name = "phone")
	private String phone;
	/**
	 * 会员等级
	 */
	@Column(name = "grade")
	private Integer grade;
	/**
	 * 积分
	 */
	@Column(name = "integration")
	private Integer integration;
}

